package com.giscloud.limp.dao;

import com.giscloud.limp.entity.Defendant;
import org.apache.ibatis.annotations.Param;
import com.giscloud.limp.entity.DefendantExample;
import java.util.List;
import com.giscloud.datasource.core.DynamicDataSource;
/**
 * 被告信息表
 * 
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-08 14:49:46
 */
public interface DefendantDao {
    @DynamicDataSource("ds1")
    long countByExample(DefendantExample example);
    @DynamicDataSource("ds1")
    int deleteByExample(DefendantExample example);
    @DynamicDataSource("ds1")
    int insert(Defendant record);
    @DynamicDataSource("ds1")
    int insertSelective(Defendant record);
    @DynamicDataSource("ds1")
    List<Defendant> selectByExample(DefendantExample example);
    @DynamicDataSource("ds1")
    int updateByExampleSelective(@Param("record") Defendant record, @Param("example") DefendantExample example);
    @DynamicDataSource("ds1")
    int updateByExample(@Param("record") Defendant record, @Param("example") DefendantExample example);
    @DynamicDataSource("ds1")
    int updateByPrimaryKeySelective(Defendant record);
    @DynamicDataSource("ds1")
    int updateByPrimaryKey(Defendant record);
    @DynamicDataSource("ds1")
    Defendant selectByPrimaryKey(Integer defendantId);
    @DynamicDataSource("ds1")
    Defendant selectOneByExample(DefendantExample example);
    @DynamicDataSource("ds1")
    Defendant selectOneByExampleSelective(@Param("example") DefendantExample example, @Param("selective") Defendant.Column... selective);
    @DynamicDataSource("ds1")
    Defendant selectByPrimaryKeySelective(Integer defendantId, @Param("selective") Defendant.Column... selective);
    @DynamicDataSource("ds1")
    List<Defendant> selectByExampleSelective(@Param("example") DefendantExample example, @Param("selective") Defendant.Column... selective);

}
